#!/bin/sh

guid=$1
hostname=$2
root_dir=`(cd $(dirname $0);pwd)`

sed -i -e "s/{AGENT_GUID}/${guid}/g" -e "s/{HOSTNAME}/${hostname}/g" $root_dir/prometheus/prometheus.yml
